<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<jsp:include page="/WEB-INF/views/layouts/header.jsp" />
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!--中间部分开始-->
<div class="main">
	<!-- 左侧 -->
	<jsp:include page="/WEB-INF/views/account/sidebar.jsp" />
	<!-- /左侧 -->
	<!-- 核心内容区域 -->
	<div id="iaas_layout_content" class="rightblock">
		<p class="shadow"></p>
		<div class="content">
			<!--默认状态下引用样式ml60，展开后引用样式ml140-->
			<div class="mainblock">
				<div class="tabA">
					<h1>创建新产品</h1>
				</div>
				<div class="zhgl_1 zhxxxg">
					<h5>产品信息</h5>
					<form:form id="form0" method="POST" modelAttribute="product"
						validate="true" action="/product/createProductSave">
						<table width="100%" border="0" cellpadding="0" cellspacing="0">
							<tr>
								<td width="8%"><p>产品名称：</p>
								</td>
								<td width="92%"><form:input path="productName"
										validate="true" data-required="true" null-message="产品不能为空 ！"
										data-type="lengthLimit" min-length="1" max-length="20"
										message="产品不允许超过20个字符！" /><span class="cuered"></span></td>
							</tr>
							<tr>
								<td><p>发行银行：</p>
								</td>
								<td><label> <form:select path="bankId" validate='true' data-required="true" null-message="发行银行不能为空 ！"
										onchange="loadPostion(this)">
										<form:option value=""></form:option>
											<c:forEach items="${bankList}" var="bank">
												<form:option value="${bank.id}">${bank.name}</form:option>
											</c:forEach>
									</form:select> <span class="cuered"></span> </label></td>
							</tr>
							<tr>
								<td><p>币种：</p>
								</td>
								<td><select name="curtype" onchange="">
										<option value="1">人民币</option>
										<option value="2">美元</option>
										<option value="3">港币</option>
										<option value="4">欧元</option>
										<option value="5">英镑</option>
										<option value="6">澳元</option>
										<option value="7">其他币种</option>
								</select> <span class="cuered"></span></td>
							</tr>
							<tr>
								<td><p>收益类型：</p></td>
								<td><select name="incomeType">
										<option value="1">保本固定收益类型</option>
										<option value="2">保本浮动收益类型</option>
										<option value="3">非保本浮动收益类型</option>
										<option value="0">暂未发布</option>
								</select><span class="cuered"></span></td>
							</tr>
							<tr>
								<td><p>管理期限：</p></td>
								<td><form:input path="runtimeTime"/><span class="cuegray"></span></td>
							</tr>
							<tr>
								<td><p style="width:130px;">预期最高收益率：</p>
								</td>
								<td><form:input path="expectedHeigh"/><span class="cuegray"></span></td>
							</tr>
							<tr>
								<td><p>起始金额：</p>
								</td>
								<td><form:input path="individualAmount"/><span class="cuegray"></span></td>
							</tr>
							<tr>
								<td><p>起售开始：</p>
								</td>
								<td><input id="d5221" name="sellStart" class="Wdate" type="text" onFocus="var d5222=$dp.$('d5222');WdatePicker({onpicked:function(){d5222.focus();},maxDate:'#F{$dp.$D(\'d5222\')}'})"/></span></td>
							</tr>
							<tr>
								<td><p>起售结束：</p>
								</td>
								<td><input id="d5222" name="sellEnd" class="Wdate" type="text" onFocus="WdatePicker({minDate:'#F{$dp.$D(\'d5221\')}'})"/><span class="cuegray"></span></td>
							</tr>
							<tr>
								<td><p>发行地区：</p>
								</td>
								<td><input name="salesArea" type="text"/><span class="cuegray"></span></td>
							</tr>
						</table>
				</div>
				<div class="zhgl_1 mmxg">
					<h5>注册账号</h5>
					<table width="100%" border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td><p>是否展示：</p></td>
							<td><span class="cuegray">*用于发送通知</span></td>
						</tr>

					</table>
				</div>
				</form:form>
				<div class="btnblock ">
					<input name="Input" type="submit" value="保 存"
						class="btngreen01 linkhand"" />
				</div>
			</div>
		</div>
	</div>
</div>
<!--中间部分结束-->
<!--底部开始-->
<jsp:include page="/WEB-INF/views/layouts/footer.jsp" />
<!--底部结束-->

</body>
</html>
